<extend name="Base:base" />
<block name="head">
    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/js/jquery-ui-1.10.4.custom.js"></script>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/jquery-ui-1.10.4.custom.css" />
</block>
<block name="title">{$title}</block>
<block name="content">
    <a href="{:U('Admin/Customer/add')}" class="add">添加顾客信息</a>
    <div id="content">
        <table class="table">
            <tr>
                <th>id</th>
                <th>姓名</th>
                <th>电子邮箱</th>
                <th>联系方式</th>
                <th>备注信息</th>
                <th>操作</th>
            </tr>
            <foreach name="customers" item="customer">
                <tr>
                    <td>[<a href="{:U('Admin/Customer/view',array('id'=>$customer['id']))}">{$customer.id}]</a></td>
                    <td>{$customer.name}</td>
                    <td>{$customer.email}</td>
                    <td>{$customer.tel}</td>
                    <td>{$customer.message}</td>
                    <td>【<a href="{:U('Admin/Customer/view',array('id'=>$customer['id']))}">查看</a>】
                        【<a href="{:U('Admin/Customer/edit',array('id'=>$customer['id']))}">修改</a>】
                        【<a onclick="return confirm('确认要删除该顾客信息吗？');" href="{:U('Admin/Customer/delete',array('id'=>$customer['id']))}" id="btn_delete">删除</a>】</td>
                </tr>
            </foreach>
        </table>
        <div class="digg">{$page}</div>
    </div>
</block>